<template>
<h2>物联网金融系统-登录</h2>
<table>
    <tr>
        <td>用户名：</td>
        <td>
            <input type="text" id="Yname" v-model="Yname" >
        </td>
    </tr>
    <tr>
        <td>密码：</td>
        <td>
            <input type="text" id="Ypwd" v-model="Ypwd" name="" value="">
        </td>
    </tr>
    <tr>
        
        <td>
        <button type="" @click="add">登录</button>
        </td>
    </tr>
</table>
</template>
<<script setup lang="ts">
import { ref } from "vue";
const Yname = "Admin123";
const Ypwd = "Admin123";

function add() {
    alert("登录成功!")
}
</script>